﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DALayer;
using Model;

namespace DLL
{
    public class UserInfoBLL
    {
        /// <summary>
        /// 检索用户是否已注册
        /// </summary>
        /// <param name="Phone">手机号</param>
        /// <returns></returns>
        public static Boolean SelectUser(string Phone)
        {
            return UserInfoDAL.SelectUser(Phone);
        }

        /// <summary>
        /// 检索用户是否存在
        /// </summary>
        /// <param name="UserPhone">用户手机</param>
        /// <param name="UserPwd">用户密码</param>
        /// <returns></returns>
        public static DataTable selectUser(string UserPhone, string UserPwd)
        {
            return UserInfoDAL.SelectUser(UserPhone, UserPwd);
        }

        /// <summary>
        /// 用户注册
        /// </summary>
        /// <param name="us"></param>
        /// <returns></returns>
        public static Boolean InserInfoBLL(UserModel us)
        {
            return UserInfoDAL.InserUserInfo(us);
        }


        
    }
}
